#include <func.h>
#include "taskQueue.h"
#ifndef __THREAD__
#define __THREAD__
//这里描述整个线程池的信息，也就是线程间共享的数据
typedef struct threadPool_s
{
    pthread_t *tidArr;
    int threadNum;
    taskQueue_t taskQueue;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int isThreadPoolRunning;
}threadPool_t;
int threadPoolInit(threadPool_t *pThreadPool,int workerNum);
#endif